<template>
	<UHeader :links="links">
		<template #logo>
			随缘小站
			<UBadge label="fu" variant="subtle" class="mb-0.5" />
		</template>

		<template #right>
			<a-button @click="toLogin">登录</a-button>
		</template>
	</UHeader>
</template>

<script setup lang="ts">
import type { NavItem } from '@nuxt/content';
import { useRouter } from '#app';
const router = useRouter();

const links = [
	{
		label: '文档',
		to: '/docs',
	},
	{
		label: '交易',
		to: '/pricing',
	},
	{
		label: '博客',
		to: '/blog',
	},
	{
		label: '智能对话',
		to: '/gpt',
	},
];

const toLogin = () => router.push('/login');
</script>
